import request from "@/utils/request";

//投诉类型列表
export function complaintList() {
  return request({
    url: "/mall/complaintAdvice/list",
    method: "get",
  });
}
//添加类型
export function complaintAdd(data) {
  return request({
    url: "/mall/complaintAdvice",
    method: "post",
    data,
  });
}
//获取详情
export function complaintDetail(id) {
  return request({
    url: "/mall/complaintAdvice/" + id,
    method: "get",
  });
}
//修改类型
export function complaintEdit(data) {
  return request({
    url: "/mall/complaintAdvice",
    method: "put",
    data,
  });
}
// 投诉建议记录列表
export function mallComplaintAdviceList(query) {
  return request({
    url: "/mall/complaintAdvice/mallComplaintAdviceList",
    method: "get",
    params: query,
  });
}
